'''
Suppose the catia application is running. With the help of `win32com` library, please help me to write a Python code snippet.
The code should achieve the following goals.
1. Create a new part document
2. Create a sketch in this document
3. In this sketch, create a circle
4. Create a pad using the sketch, with thickness set to 10mm
You should use `from win32com.client import Dispatch` and `CATIA = Dispatch("CATIA.Application")` to get the running CATIA instance.
'''
from win32com.client import Dispatch

def create_part_document():
    # Initialize CATIA application
    CATIA = Dispatch("CATIA.Application")
    
    # Make CATIA visible (optional, but often useful for debugging)
    CATIA.Visible = True
    
    # Get the current CATIA document (if any)
    CATIA.Documents
    
    # Create a new PartDocument
    part_document = CATIA.Documents.Add("Part")
    
    # Return the PartDocument object
    return part_document

# Example usage
part_doc = create_part_document()
print("PartDocument created successfully.")
